from django.urls import path
from rest_framework.routers import DefaultRouter
from .views import UserViewSet, user_register, user_profile

router = DefaultRouter()
router.register(r'users', UserViewSet)

urlpatterns = [
    path('register/', user_register, name='user-register'),
    path('profile/', user_profile, name='user-profile'),
] + router.urls